package com.test.service;

import com.test.entity.Book;
import com.test.entity.Borrow;
import com.test.entity.BorrowDetails;

import java.util.List;

public interface BookService {
    List<Book> allBook();
    void deleteBook(int id);
    void insertBook(Book book);
    void borrowBook(int bid,int uid);
    List<Borrow>getAllBorrow();
    List<Book>getAllBookWithOutBorrow();
    List<Book> getAllBorrowBookById(int id);
    void returnBook(int bid,int id);
    List<BorrowDetails> getAllBorrowOnAdmin();
}
